package com.kl.modular.system.dao.model;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 权限资源
 * @author XRP_ZJB
 * @date 2016-01-15 13:41
 * @(C) XIGNSOFT Copyright 
 */
@Table(name = "system_auth_resource")
public class SystemAuthResource {

    public final static String AUTH_MODULE_SYS = "sysman";// 系统管理模块
    public final static String AUTH_MODULE_ENP = "enterprise";// 企业模块
    public final static String AUTH_MODULE_POL = "security";// 公安模块
	
	/**
	 * 主键id
	 */
	@Column(name="id")
    private Long id;
	/**
	 * 权限code
	 */
	@Column(name="auth_code")
    private String authCode;
	/**
	 * 菜单名称或权限名称
	 */
	@Column(name="auth_name")
    private String authName;
	/**
	 * shrio标识
	 */
	@Column(name="auth_shrio_code")
    private String authShrioCode;
	/**
	 * 访问地址
	 */
	@Column(name="auth_url")
    private String authUrl;
	/**
	 * 排序
	 */
	@Column(name="auth_no")
    private int authNo;
	/**
	 * 类型 1模块 2菜单 3功能
	 */
	@Column(name="auth_type")
    private String authType;
	/**
	 * 父id
	 */
	@Column(name="auth_parent_code")
    private String authparentCode;
    /**
     * 模块类型
     */
    @Column(name = "module_type")
    private String moduleType;
	/**
	 * 权限资源状态
	 */
	@Column(name="auth_status")
    private String authStatus;
    /**
     * icon图片
     */
	@Column(name = "icon_pic")
	private String iconPic;
	/**
	 * 创建时间
	 */
	@Column(name="create_time")
    private String createTime;
	/**
	 * 最后操作时间
	 */
	@Column(name="modify_time")
    private String modifyTime;
	/**
	 * 是否删除
	 */
	@Column(name="enabled")
    private Boolean enabled;
	
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getAuthCode() {
        return authCode;
    }
    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }
    public String getAuthName() {
        return authName;
    }
    public void setAuthName(String authName) {
        this.authName = authName;
    }
    public String getAuthShrioCode() {
        return authShrioCode;
    }
    public void setAuthShrioCode(String authShrioCode) {
        this.authShrioCode = authShrioCode;
    }
    public String getAuthUrl() {
        return authUrl;
    }
    public void setAuthUrl(String authUrl) {
        this.authUrl = authUrl;
    }
    public int getAuthNo() {
        return authNo;
    }
    public void setAuthNo(int authNo) {
        this.authNo = authNo;
    }
    public String getAuthType() {
        return authType;
    }
    public void setAuthType(String authType) {
        this.authType = authType;
    }
    public String getAuthparentCode() {
		return authparentCode;
	}
	public void setAuthparentCode(String authparentCode) {
		this.authparentCode = authparentCode;
	}
	public String getAuthStatus() {
        return authStatus;
    }
    public void setAuthStatus(String authStatus) {
        this.authStatus = authStatus;
    }
    public String getCreateTime() {
        return createTime;
    }
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getModifyTime() {
        return modifyTime;
    }
    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }
    public Boolean getEnabled() {
        return enabled;
    }
    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public String getModuleType() {
        return moduleType;
    }

    public void setModuleType(String moduleType) {
        this.moduleType = moduleType;
    }

    public String getIconPic() {
        return iconPic;
    }

    public void setIconPic(String iconPic) {
        this.iconPic = iconPic;
    }
}